﻿<!DOCTYPE html>
<!--[if IE 7]><html class="ie7" lang="zh"><![endif]-->
<!--[if gt IE 7]><!-->
<html lang="zh">
<!--<![endif]-->
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" />
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" /><!--隐藏状态栏 -->
<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<meta HTTP-EQUIV="expires" CONTENT="0">
<title>{$info[0]['title']}</title>
<link href="<?php echo MODULE_URL;?>template/mobile/css/style.css?v=2sddd2" rel="stylesheet" type="text/css" />
<?php if($info[0]['skin']=="1" || empty($info[0]['skin'])){ 
	echo "<link href='".MODULE_URL."/template/mobile/css/theme1.css?v=dfd' rel='stylesheet' type='text/css' />";
	}elseif($info[0]['skin']=="2") { 
		echo "<link href='".MODULE_URL."/template/mobile/css/theme2.css' rel='stylesheet' type='text/css' />";
	}elseif($info[0]['skin']=="3") { 
		echo "<link href='".MODULE_URL."/template/mobile/css/theme3.css?v=sdf' rel='stylesheet' type='text/css' />";
	}
?>
</head>
<body>
<div class="content">
  <div class="wrapper">
    <div class="light"><i></i></div>
    <hr class="line-left">
    <hr class="line-right">
    <div class="main">
      <h1 class="title">{$info[0]['title']}</h1>
      <br><br><br><br>
      
      <?php foreach ($alls as $key => $value) { 
			foreach ($value as $keyin => $valuein) { ?>
				<div class="year">
	        	  <h2><a href="javascript:void(0);">{$keyin}年<i></i></a></h2>
	        	  <?php foreach ($valuein as $keyiin => $valueiin) { ?>
					<div class="list">
			          <ul>
			            <li class="cls <?php if($valueiin['highlight'] =='1'){echo 'highlight';}?>">
			              <p class="date">{php echo substr($valueiin['event_time'],5,5);}</p>
			              <p class="intro">{$valueiin['event_title']}</p>
			              <p class="version">&nbsp;</p>
			              <div class="more">
			                <?php echo html_entity_decode($valueiin['event_content']);?>
			              </div>
			            </li>
			            
			          </ul>
			        </div>
			      <?php } ?>
			    </div>
			<?php } } ?>
   
    </div>
  </div>
</div>
<div class="footer">
  <div class="footer-content clearfix">
    <div class="copyright"> {$info[0]['copyright']}</div>
    <div class="design"><a href="{php echo $this->createMobileUrl('add_event')}">——>创建属于自己的时间轴</a></div>
  </div>
</div>

<script type="text/javascript" src="<?php echo MODULE_URL;?>/template/mobile/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo MODULE_URL;?>/template/mobile/js/fastclick.min.js"></script>
<script>
	$(".main .year .list").each(function (e, target) {
	    var $target=  $(target),
	        $ul = $target.find("ul");
	    $target.height($ul.outerHeight()), $ul.css("position", "relative");
	}); 
	$(".main .year>h2>a").click(function (e) {
	    e.preventDefault();
	    $(this).parents(".year").toggleClass("close");
	});
	window.addEventListener('load', function() {
  		FastClick.attach(document.body);
	}, false);
</script>
{php echo register_jssdk(false);}
<script type="text/javascript">
    initShare();
    function initShare(){
        wx.ready(function () {
            sharedata = {
                title: "{php echo $info[0]['share_title']}"+" "+"{php echo $info[0]['share_content']}",
                desc: "{php echo $info[0]['share_content']}",
                link: window.location.href,
                imgUrl: "{$_W['attachurl']}{$info[0]['share_icon']}",
                success: function(){

                },
                cancel: function(){
                    //alert("分享失败，可能是网络问题，一会儿再试试？");
                }
            };
            wx.onMenuShareAppMessage(sharedata);
            wx.onMenuShareTimeline(sharedata);
        });
    }

</script>
</body>
</html>